/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

var Nature = new Class({
    initialize: function(){
        this.objects = new Hash();
        this.objectId=0;
        this.expandWorldSpace();
    },
    createObject: function(obj){ // bringObjectIntoExistence
        obj.id=this.objectId;
        // every object must have the information on how to enter the worls within themselves
        obj.comeIntoExistence(this);
        this.objects.set(obj.id,obj);
        this.objectId++;
    }
});